﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Functions/Forms/Forms.master" AutoEventWireup="true" CodeBehind="DownloadableForms.aspx.cs" Inherits="HRDexCapstoneProject.Functions.Forms.WebForm6" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainPage" runat="server">
    <div>
    <table>
        <tr>
             <td>

                        <asp:ImageButton ID="btnEdit" runat="server" Height="49px" 
                            
                   Width="52px"  />

                        <asp:ImageButton ID="btnDelete" runat="server" Height="49px" 
                     Width="52px" />
                        </td> 
        </tr>
        <tr>
            <td>
            Downloadable Files
                <asp:GridView ID="gvDownload" runat="server" AutoGenerateColumns="False" 
                    DataSourceID="dsDownload" DataKeyNames="downloadID" 
                    onselectedindexchanged="gvDownload_SelectedIndexChanged">
                    <Columns>
                        <asp:BoundField DataField="downloadID" HeaderText="downloadID" 
                            InsertVisible="False" ReadOnly="True" SortExpression="downloadID" 
                            Visible="False" />
                        <asp:BoundField DataField="dLoadName" HeaderText="dLoadName" 
                            SortExpression="dLoadName" />
                        <asp:BoundField DataField="dLoadType" HeaderText="dLoadType" 
                            SortExpression="dLoadType" />
                        <asp:ButtonField ButtonType="Button" CommandName="Select" HeaderText="Download" 
                            ShowHeader="True" Text="Download" />
                    </Columns>
                </asp:GridView>
                <asp:SqlDataSource ID="dsDownload" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT downloadID, dLoadName, dLoadType FROM formDownload">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="pnladddoc" runat="server" Visible="False">
                    <asp:FileUpload ID="fuDownloads" runat="server" />
                    <br />
                    <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" 
                        Text="Submit" />
                    <asp:Button ID="btnClose" runat="server" Text="Close" />
                    <asp:Button ID="btnClear" runat="server" onclick="btnClear_Click" 
                        Text="Clear" />
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</div>
</asp:Content>
